

/****** Object:  Table [dbo].[Candidates]    Script Date: 08/09/2011 21:22:10 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[CandidateResume](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[CandidateID] int NOT NULL,
	[Resume] [image] NULL,
	[ResumeName] [nvarchar](255) NULL
 CONSTRAINT [PK_CandidateResume_ID] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

ALTER TABLE [dbo].[CandidateResume]  WITH CHECK ADD  CONSTRAINT [FK_CandidateResume_Candidates_CandidateID] FOREIGN KEY([CandidateID])
REFERENCES [dbo].[Candidates] ([Id]) on delete cascade
GO
